cmake_minimum_required(VERSION 3.4.1)

project(sbc_codec)

include_directories(./src)
aux_source_directory(./src sbcsrc)

find_library(log-lib log)

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_RELEASE  "-finline-functions -fgcse-after-reload -funswitch-loops -funroll-loops")
set(CMAKE_CXX_FLAGS_DEBUG "-finline-functions -fgcse-after-reload -funswitch-loops -funroll-loops")


add_library(sbccodec SHARED ${sbcsrc})
target_link_libraries(sbccodec ${log-lib})